package com.yidu.best.TA.Fundinventory.domain;

import java.math.BigDecimal;
import java.util.Date;

public class CasharapInventory {
	private String cachARAPInventoryId;
	private String cachARAPInventoryNo;
	private String fundId;
	private String fundCode;
	private String fundName;
	private String accountId;
	private String accountNo;
	private String accountName;
	private BigDecimal balance;
	private Date businessDate;
	private Integer businessType;
	private Integer flag;
	private String description;
	
	public CasharapInventory() {
		super();
	}

	public CasharapInventory(String cachARAPInventoryId, String cachARAPInventoryNo, String fundId, String fundCode,
			String fundName, String accountId, String accountNo, String accountName, BigDecimal balance,
			Date businessDate, Integer businessType, Integer flag, String description) {
		super();
		this.cachARAPInventoryId = cachARAPInventoryId;
		this.cachARAPInventoryNo = cachARAPInventoryNo;
		this.fundId = fundId;
		this.fundCode = fundCode;
		this.fundName = fundName;
		this.accountId = accountId;
		this.accountNo = accountNo;
		this.accountName = accountName;
		this.balance = balance;
		this.businessDate = businessDate;
		this.businessType = businessType;
		this.flag = flag;
		this.description = description;
	}

	@Override
	public String toString() {
		return "CasharapInventory [cachARAPInventoryId=" + cachARAPInventoryId + ", cachARAPInventoryNo="
				+ cachARAPInventoryNo + ", fundId=" + fundId + ", fundCode=" + fundCode + ", fundName=" + fundName
				+ ", accountId=" + accountId + ", accountNo=" + accountNo + ", accountName=" + accountName
				+ ", balance=" + balance + ", businessDate=" + businessDate + ", businessType=" + businessType
				+ ", flag=" + flag + ", description=" + description + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
		result = prime * result + ((accountName == null) ? 0 : accountName.hashCode());
		result = prime * result + ((accountNo == null) ? 0 : accountNo.hashCode());
		result = prime * result + ((balance == null) ? 0 : balance.hashCode());
		result = prime * result + ((businessDate == null) ? 0 : businessDate.hashCode());
		result = prime * result + ((businessType == null) ? 0 : businessType.hashCode());
		result = prime * result + ((cachARAPInventoryId == null) ? 0 : cachARAPInventoryId.hashCode());
		result = prime * result + ((cachARAPInventoryNo == null) ? 0 : cachARAPInventoryNo.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((flag == null) ? 0 : flag.hashCode());
		result = prime * result + ((fundCode == null) ? 0 : fundCode.hashCode());
		result = prime * result + ((fundId == null) ? 0 : fundId.hashCode());
		result = prime * result + ((fundName == null) ? 0 : fundName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CasharapInventory other = (CasharapInventory) obj;
		if (accountId == null) {
			if (other.accountId != null)
				return false;
		} else if (!accountId.equals(other.accountId))
			return false;
		if (accountName == null) {
			if (other.accountName != null)
				return false;
		} else if (!accountName.equals(other.accountName))
			return false;
		if (accountNo == null) {
			if (other.accountNo != null)
				return false;
		} else if (!accountNo.equals(other.accountNo))
			return false;
		if (balance == null) {
			if (other.balance != null)
				return false;
		} else if (!balance.equals(other.balance))
			return false;
		if (businessDate == null) {
			if (other.businessDate != null)
				return false;
		} else if (!businessDate.equals(other.businessDate))
			return false;
		if (businessType == null) {
			if (other.businessType != null)
				return false;
		} else if (!businessType.equals(other.businessType))
			return false;
		if (cachARAPInventoryId == null) {
			if (other.cachARAPInventoryId != null)
				return false;
		} else if (!cachARAPInventoryId.equals(other.cachARAPInventoryId))
			return false;
		if (cachARAPInventoryNo == null) {
			if (other.cachARAPInventoryNo != null)
				return false;
		} else if (!cachARAPInventoryNo.equals(other.cachARAPInventoryNo))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (flag == null) {
			if (other.flag != null)
				return false;
		} else if (!flag.equals(other.flag))
			return false;
		if (fundCode == null) {
			if (other.fundCode != null)
				return false;
		} else if (!fundCode.equals(other.fundCode))
			return false;
		if (fundId == null) {
			if (other.fundId != null)
				return false;
		} else if (!fundId.equals(other.fundId))
			return false;
		if (fundName == null) {
			if (other.fundName != null)
				return false;
		} else if (!fundName.equals(other.fundName))
			return false;
		return true;
	}

	public String getCachARAPInventoryId() {
		return cachARAPInventoryId;
	}

	public void setCachARAPInventoryId(String cachARAPInventoryId) {
		this.cachARAPInventoryId = cachARAPInventoryId;
	}

	public String getCachARAPInventoryNo() {
		return cachARAPInventoryNo;
	}

	public void setCachARAPInventoryNo(String cachARAPInventoryNo) {
		this.cachARAPInventoryNo = cachARAPInventoryNo;
	}

	public String getFundId() {
		return fundId;
	}

	public void setFundId(String fundId) {
		this.fundId = fundId;
	}

	public String getFundCode() {
		return fundCode;
	}

	public void setFundCode(String fundCode) {
		this.fundCode = fundCode;
	}

	public String getFundName() {
		return fundName;
	}

	public void setFundName(String fundName) {
		this.fundName = fundName;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public Date getBusinessDate() {
		return businessDate;
	}

	public void setBusinessDate(Date businessDate) {
		this.businessDate = businessDate;
	}

	public Integer getBusinessType() {
		return businessType;
	}

	public void setBusinessType(Integer businessType) {
		this.businessType = businessType;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}
